home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / latex209 / contrib / pslatex / ps-amsfonts.sty < prev    next >
Text File  |  1992-05-25  |  11KB  |  313 lines

  1. %%% ====================================================================
  2. %%%  @LaTeX-style-file{
  3. %%%     author          = "Mario Wolczko",
  4. %%%     version         = "2",
  5. %%%     date            = "21 May 1992",
  6. %%%     time            = "21:19:25 BST",
  7. %%%     filename        = "ps-amsfonts.sty",
  8. %%%     address         = "Dept of Computer Science
  9. %%%                        The University of Manchester
  10. %%%                        Oxford Road
  11. %%%                        Manchester M13 9PL
  12. %%%                        UK",
  13. %%%     telephone       = "+44-61-275-6146",
  14. %%%     FAX             = "+44-61-275-6236",
  15. %%%     checksum        = "50700 312 871 11095",
  16. %%%     email           = "mario@cs.man.ac.uk (Internet)",
  17. %%%     codetable       = "ISO/ASCII",
  18. %%%     keywords        = "PS-LaTeX, AMS fonts",
  19. %%%     supported       = "yes",
  20. %%%     docstring       = "A modified version of amsfonts.sty for use
  21. %%%     with PS-LaTeX",
  22. %%%  }
  23. %%% ====================================================================
  24. %% This is file ps-amsfonts.sty modified from amsfonts.sty by Mario
  25. %% Wolczko for use with PSLaTeX.
  26.  
  27. % The modification remove all references to bold math, as PSLaTeX does
  28. % not support it, and any reference to CM fonts.
  29.  
  30. % If vdm is in use (\vdm is defined), then fraktur is not loaded, as
  31. % this overflows the number of available families
  32.  
  33. % Last edited: Thu May 21 21:19:26 1992 by mario (Mario Wolczko) on madarch
  34. %
  35. % Report bugs in this file to:
  36. %  Mario Wolczko
  37. %  Dept of Computer Science, The University, Oxford Rd, Manchester M13 9PL, UK
  38. %  mario@cs.man.ac.uk.
  39.  
  40. %% on 21-JUN-1991 by the docstrip.ams utility (1.0).
  41. %%
  42. %%@texfile{%
  43. %% filename="amsfonts.sty",
  44. %% version="1.1",
  45. %% date="21-JUN-1991",
  46. %% filetype="AMS-LaTeX: option",
  47. %% copyright="Copyright (C) American Mathematical Society, all rights
  48. %%   reserved.  Copying of this file is authorized only if either:
  49. %%   (1) you make absolutely no changes to your copy, including name;
  50. %%   OR (2) if you do make changes, you first rename it to some other
  51. %%   name.",
  52. %% author="American Mathematical Society",
  53. %% address="American Mathematical Society,
  54. %%   Technical Support Group,
  55. %%   P. O. Box 6248,
  56. %%   Providence, RI 02940,
  57. %%   USA",
  58. %% telephone="401-455-4080 or (in the USA) 800-321-4AMS",
  59. %% email="Internet: Tech-Support@Math.AMS.com",
  60. %% checksumtype="line count",
  61. %% checksum="269",
  62. %% codetable="ISO/ASCII",
  63. %% keywords="latex, amslatex, ams-latex, amsfonts, msam, msbm, eufm,
  64. %%   blackboard bold",
  65. %% abstract="This file is part of the AMS-\LaTeX{} package, ver. 1.1.
  66. %%   It is a \LaTeX{} option that provides a `newsymbol' command for
  67. %%   defining math symbols from the two math symbol fonts in the
  68. %%   AMSFonts (version 2.0+) font package. See the AMSFonts user's guide
  69. %%   for more information. It also defines a command for producing
  70. %%   `blackboard bold' letters (uppercase only)."
  71. %%}
  72. \expandafter\ifx\csname ps-amsfonts.sty\endcsname\relax
  73. \expandafter\def\csname ps-amsfonts.sty\endcsname{}
  74. \else\message{---already loaded}\endinput\fi
  75. \def\filename{ps-amsfonts.sty}
  76. \def\fileversion{1.1} \def\filedate{6-May-92}
  77. \immediate\write16{%
  78. AMS-LaTeX option `\filename' (\fileversion, \filedate)}
  79. %%% end of file header
  80. \def\RIfM@{\relax\protect\ifmmode}
  81. \def\boxz@{\box\z@}
  82. \def\setboxz@h{\setbox\z@\hbox}
  83. \def\wdz@{\wd\z@}
  84. \def\noaccents@{\def\accentclass@{0}}
  85. \def\Invalid@@{Invalid use of \string}
  86. \def\nonmatherr@#1{\err@
  87.     {\string#1\space allowed only in math mode}\@ehd}
  88. \@ifundefined{err@}{\def\err@{\@latexerr}}{}
  89. \new@mathgroup\msa@group
  90. \new@mathgroup\msb@group
  91. \define@mathgroup\mv@normal\msa@group{msa}{m}{n}
  92. \define@mathgroup\mv@normal\msb@group{msb}{m}{n}
  93. %\define@mathgroup\mv@bold\msa@group{msa}{m}{n}
  94. %\define@mathgroup\mv@bold\msb@group{msb}{m}{n}
  95. {\catcode`\"=12
  96. \edef\@tempa{\hexnumber@\msa@group}%
  97. \edef\@tempb{\hexnumber@\msb@group}%
  98. \xdef\ulcorner{\delimiter"4\@tempa 70\@tempa 70 }
  99. \xdef\urcorner{\delimiter"5\@tempa 71\@tempa 71 }
  100. \xdef\llcorner{\delimiter"4\@tempa 78\@tempa 78 }
  101. \xdef\lrcorner{\delimiter"5\@tempa 79\@tempa 79 }
  102. \xdef\yen      {\noexpand\mathhexbox\@tempa 55 }
  103. \xdef\checkmark{\noexpand\mathhexbox\@tempa 58 }
  104. \xdef\circledR {\noexpand\mathhexbox\@tempa 72 }
  105. \xdef\maltese  {\noexpand\mathhexbox\@tempa 7A }
  106. \xdef\widehat#1{\noexpand\setboxz@h{$\noexpand\m@th#1$}%
  107.  \noexpand\ifdim\noexpand\wdz@>\tw@ em\mathaccent"0\@tempb5B{#1}%
  108.  \noexpand\else\mathaccent"0362{#1}\noexpand\fi}
  109. \xdef\widetilde#1{\noexpand\setboxz@h{$\noexpand\m@th#1$}%
  110.  \noexpand\ifdim\noexpand\wdz@>\tw@ em\mathaccent"0\@tempb5D{#1}%
  111.  \noexpand\else\mathaccent"0365{#1}\noexpand\fi}
  112. %\global added by DPC
  113. \global\mathchardef\dabar@="0\@tempa39
  114. \xdef\dashrightarrow{\mathrel{\dabar@\dabar@\mathchar"0\@tempa4B}}%
  115. \xdef\dashleftarrow{\mathrel{\mathchar"0\@tempa4C\dabar@\dabar@}}%
  116. \global\let\dasharrow\dashrightarrow
  117. \gdef\newsymbol#1#2#3#4#5{%
  118.     \@ifdefinable#1{%
  119.        \edef\next@
  120.          {\ifcase #2 \or
  121.             \hexnumber@{\msa@group}\or
  122.             \hexnumber@{\msb@group}\fi}%
  123.        \ifx\next@\@empty
  124.          \err@{\Invalid@@\newsymbol}\@ehd%
  125.        \else
  126.         \global\mathchardef#1"#3\next@#4#5
  127.        \fi}}
  128. }
  129. \let\rightleftharpoons\undefined \newsymbol\rightleftharpoons 130A
  130. \let\angle\undefined             \newsymbol\angle             105C
  131. \let\hbar\undefined              \newsymbol\hbar              207E
  132. \let\sqsubset\undefined          \newsymbol\sqsubset          1340
  133. \let\sqsupset\undefined          \newsymbol\sqsupset          1341
  134. \let\mho\undefined               \newsymbol\mho               2066
  135. \let\Box\undefined      \newsymbol\Box 1203
  136. \let\Diamond\undefined  \newsymbol\Diamond 1206
  137. \let\leadsto\undefined  \newsymbol\leadsto 1320
  138. \let\lhd\undefined      \newsymbol\lhd 1343
  139. \let\unlhd\undefined    \newsymbol\unlhd 1345
  140. \let\rhd\undefined      \newsymbol\rhd 1342
  141. \let\unrhd\undefined    \newsymbol\unrhd 1344
  142. \edef\Join{\mathrel{\mathchar"0\hexnumber@\msb@group 6F\mkern-13.8mu%
  143.   \mathchar"0\hexnumber@\msb@group 6E}}
  144. \def\frak{\protect\pfrak}
  145. \def\pfrak{\RIfM@\expandafter\frak@\else
  146.   \expandafter\nonmatherr@\expandafter\frak\fi}
  147. \def\goth{\family{euf}\selectfont\frak@}
  148. \ifx\vdm\@undefined
  149.   \newmathalphabet\frak@
  150.   \addtoversion{normal}\frak@{euf}{m}{n}
  151. \fi
  152. %\addtoversion{bold}\frak@{euf}{b}{n}
  153. %\def\bold{\protect\pbold}
  154. %\def\pbold{\RIfM@\expandafter\bold@\else
  155. %                 \expandafter\nonmatherr@\expandafter\bold\fi}
  156. %\newmathalphabet*\bold@{cmr}{bx}{n}
  157. \def\Bbb{\protect\pBbb}
  158. \def\pBbb{\RIfM@\expandafter\Bbb@\else
  159.                  \expandafter\nonmatherr@\expandafter\Bbb\fi}
  160. \edef\Bbb@{\noexpand\use@mathgroup
  161.           \expandafter\noexpand\csname =msb\endcsname
  162.           \msb@group}
  163. \newbox\Mathstrutbox@
  164. \setbox\Mathstrutbox@\null
  165. \def\Mathstrut@{\copy\Mathstrutbox@}
  166. \addto@hook\every@size{\setbox\z@\hbox{$\m@th($}%
  167.         \ht\Mathstrutbox@\ht\z@
  168.         \dp\Mathstrutbox@\dp\z@}
  169. \newbox\strutbox@
  170. \def\strut@{\copy\strutbox@}
  171. \addto@hook\every@size{%
  172.     \setbox\strutbox@\hbox{\lower.5\normallineskiplimit
  173.          \vbox{\kern-\normallineskiplimit\copy\strutbox}}}
  174. \def\big{\bBigg@\@ne}
  175. \def\Big{\bBigg@{1.5}}
  176. \def\bigg{\bBigg@\tw@}
  177. \def\Bigg{\bBigg@{2.5}}
  178. \def\bBigg@#1#2{%
  179.    {%
  180.     \hbox{$\left#2\vcenter to#1\big@size{}\right.%
  181.                          \nulldelimiterspace\z@ \m@th$}}}
  182. \addto@hook\every@size{\setbox\z@\vbox{\hbox{$($}\kern\z@}%
  183.   \big@size 1.2\ht\z@}
  184. \newdimen\big@size
  185. \newdimen\ex@
  186. \addto@hook\every@size{\ex@.2326\fontdimen5\textfont\@ne}
  187. \newdimen\minaw@
  188. \addto@hook\every@size{\minaw@11.11128\ex@}
  189. \addto@hook\every@size{\jot\thr@@\ex@}
  190. \newmuskip\dotsspace@
  191. \dotsspace@1.5mu
  192. \def\smash{\@ifnextchar[\@xsmash{\@xsmash[tb]}}
  193. \def\@xsmash[#1]{\def\smash@{#1}%
  194.   \ifmmode\expandafter\mathpalette\expandafter\mathsm@sh\else
  195.         \expandafter\makesm@sh\fi}
  196. \def\finsm@sh{\def\mb@t{\ht\z@\z@}\def\mb@b{\dp\z@\z@}%
  197.    \expandafter\@tfor\expandafter\@tempa
  198.          \expandafter:\expandafter=\smash@\do
  199.       {\csname mb@\@tempa\endcsname}%
  200.    \leavevmode\boxz@}
  201. \def\default@mextra{\def\accentclass@{7}}
  202. \extra@def{cmm}{\skewchar#1'177}{\noaccents@}
  203. \extra@def{cmsy}{\skewchar#1'60}{\noaccents@}
  204. \new@fontshape{msa}{m}{n}{%
  205.    <5>msam5%
  206.    <6>msam6%
  207.    <7>msam7%
  208.    <8>msam8%
  209.    <9>msam9%
  210.    <10>msam10%
  211.    <11>msam10 at10.95pt%
  212.    <12>msam10 at12pt%
  213.    <14>msam10 at14.4pt%
  214.    <17>msam10 at17.28pt%
  215.    <20>msam10 at20.74pt%
  216.    <25>msam10 at24.88pt}{}
  217. \extra@def{msa}{}{}
  218. \new@fontshape{msb}{m}{n}{%
  219.    <5>msbm5%
  220.    <6>msbm6%
  221.    <7>msbm7%
  222.    <8>msbm8%
  223.    <9>msbm9%
  224.    <10>msbm10%
  225.    <11>msbm10 at10.95pt%
  226.    <12>msbm10 at12pt%
  227.    <14>msbm10 at14.4pt%
  228.    <17>msbm10 at17.28pt%
  229.    <20>msbm10 at20.74pt%
  230.    <25>msbm10 at24.88pt}{}
  231. \extra@def{msb}{}{\noaccents@}
  232. \ifx\vdm\@undefined
  233.   \new@fontshape{euf}{m}{n}{%
  234.      <5>eufm5%
  235.      <6>eufm6%
  236.      <7>eufm7%
  237.      <8>eufm8%
  238.      <9>eufm9%
  239.      <10>eufm10%
  240.      <11>eufm10 at10.95pt%
  241.      <12>eufm10 at12pt%
  242.      <14>eufm10 at14.4pt%
  243.      <17>eufm10 at17.28pt%
  244.      <20>eufm10 at20.74pt%
  245.      <25>eufm10 at24.88pt}{}
  246.   %\new@fontshape{euf}{b}{n}{%
  247.   %   <5>eufb5%
  248.   %   <6>eufb6%
  249.   %   <7>eufb7%
  250.   %   <8>eufb8%
  251.   %   <9>eufb9%
  252.   %   <10>eufb10%
  253.   %   <11>eufb10 at10.95pt%
  254.   %   <12>eufb10 at12pt%
  255.   %   <14>eufb14%
  256.   %   <17>eufb14 at17.28pt%
  257.   %   <20>eufb14 at20.74pt%
  258.   %   <25>eufb14 at24.88pt}{}
  259.   \extra@def{euf}{\hyphenchar#1\m@ne
  260.      \@tempdima\fontdimen2#1%
  261.      \fontdimen3#1.4\@tempdima
  262.      \fontdimen4#1.3\@tempdima}
  263.     {\noaccents@}
  264. \fi
  265. %\new@fontshape{cmm}{b}{it}{%
  266. %      <5>cmmib5%
  267. %      <6>cmmib6%
  268. %      <7>cmmib7%
  269. %      <8>cmmib8%
  270. %      <9>cmmib9%
  271. %      <10>cmmib10%
  272. %      <11>cmmib10 at10.95pt%
  273. %      <12>cmmib10 at12pt%
  274. %      <14>cmmib10 at14.4pt%
  275. %      <17>cmmib10 at17.28pt%
  276. %      <20>cmmib10 at20.74pt%
  277. %      <25>cmmib10 at24.88pt%
  278. %      }{}
  279. %\new@fontshape{cmsy}{b}{n}{%
  280. %      <5>cmbsy5%
  281. %      <6>cmbsy6%
  282. %      <7>cmbsy7%
  283. %      <8>cmbsy8%
  284. %      <9>cmbsy9%
  285. %      <10>cmbsy10%
  286. %      <11>cmbsy10 at10.95pt%
  287. %      <12>cmbsy10 at12pt%
  288. %      <14>cmbsy10 at14.4pt%
  289. %      <17>cmbsy10 at17.28pt%
  290. %      <20>cmbsy10 at20.74pt%
  291. %      <25>cmbsy10 at24.88pt%
  292. %      }{}
  293. \def\unbracefonts@{\let\math@bgroup\@empty\let\math@egroup\@empty}
  294. \def\operator@font{\mathgroup\z@}
  295. %% \CharacterTable
  296. %%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
  297. %%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
  298. %%   Digits        \0\1\2\3\4\5\6\7\8\9
  299. %%   Exclamation   \!     Double quote  \"     Hash (number) \#
  300. %%   Dollar        \$     Percent       \%     Ampersand     \&
  301. %%   Acute accent  \'     Left paren    \(     Right paren   \)
  302. %%   Asterisk      \*     Plus          \+     Comma         \,
  303. %%   Minus         \-     Point         \.     Solidus       \/
  304. %%   Colon         \:     Semicolon     \;     Less than     \<
  305. %%   Equals        \=     Greater than  \>     Question mark \?
  306. %%   Commercial at \@     Left bracket  \[     Backslash     \\
  307. %%   Right bracket \]     Circumflex    \^     Underscore    \_
  308. %%   Grave accent  \`     Left brace    \{     Vertical bar  \|
  309. %%   Right brace   \}     Tilde         \~}
  310. \endinput
  311. %%
  312. %% End of file `amsfonts.sty'.
  313.